<template>
  <div class="page">
    <textScoreStudent v-if="type === '2'" />
    <textScoreTeacher v-if="type === '1'" />
  </div>
</template>

<script>
import { mapState } from "vuex";
import textScoreTeacher from "../components/textScoreTeacher";
import textScoreStudent from "../components/textScoreStudent";
export default {
  components: {
    textScoreTeacher,
    textScoreStudent,
  },
  data() {
    return {};
  },
  computed: mapState({
    type(state) {
      return state.app.type;
    },
  }),
  created() {
    
  },
};
</script>

<style lang="less" scoped>
.page {
  width: calc(100% - 246px);
  height: 100%;
  margin-left: 6px;
  background: url(~@/assets/images/矩形1拷贝3.png) no-repeat;
  background-size: 110% 100%;
  background-position: 80% 110%;
}
</style>
